﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Medical.Data;
using System.Data;

public partial class webadmin_Sql : AdminPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }


    /// <summary>
    /// 权限控制
    /// </summary>
    /// <returns></returns>
    public override long GetNeededFeatures()
    {
        return AdminFEATURE.Site;
    }
    protected void txtSubmit_Click(object sender, EventArgs e)
    {
        string strSql = txtSql.Text.Trim();
        bool bResult = SqlHelper.ExecuteNonQuery(SqlHelper.database, CommandType.Text,txtSql.Text.Trim())>0;
        Until.Alert(bResult?"成功!":"失败!");
    }
}